#pragma once
#include <string>
#include "Config.h"

namespace bs
{
	struct ExplodeCfg
	{
		ExplodeCfg();
		~ExplodeCfg();

		void LoadFromFile(Config& cfg, const char* session);

		std::string image;
		int row;
		int col;
	};

	struct NpcCfg
	{
		NpcCfg();
		~NpcCfg();

		void LoadFromFile(Config& cfg, const char* session, bool isPlane);

		int minVx;
		int maxVx;         // for plane
		int vy;            // for bullet
		int fireDelay;     // for plane
		std::string bullet;      // for plane
		std::string bulletSnd;     // for bullet
		std::string explode;
		std::string explodeSnd;
		std::string name;
		std::string image;
		int row;
		int col;
	};

	struct PlayerCfg
	{
		PlayerCfg();
		~PlayerCfg();

		void LoadFromFile(Config& cfg, const char* session);

		float maxVx;
		float friX;
		int x;
		int y;
		float accX;
		std::string bullet;
		std::string explode;
		std::string explodeSnd;
		int fireDelay;
		std::string image;
		int row;
		int col;
	};
}